package com.njupt.user.dao;


import com.njupt.user.model.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;


@Mapper
public interface UserMapper {


    //查询全部用户
    public List<User> selectUser(Map map);


    public List<User> findUserByUsername(Map<String, String> map);


    public void updateUser(Map map);


    /*
     * 通过传入姓名和密码查找用户
     * 姓名和密码放在Map里面
     */

    public User getUser(Map<String, String> map);


    public User getUser1(Map<String, String> map);

    public User getOneUser(String username);



    public void updatePassword(Map<String, String> map);


    public List<User> findAll();

    public List<User> findByPage(int nowpage);


    @SuppressWarnings("rawtypes")
    public List<User> findBylikeNow(Map map);


    //注册
    public void addUser(Map map);




    @SuppressWarnings("rawtypes")
    public void updateTypeByid(Map map);

    @SuppressWarnings("rawtypes")
    public void frozenOrNot(Map map);

    public List<User> getUserById(int userid);

    //密码找回
    @SuppressWarnings("rawtypes")
    public User retrieve(Map map);/*  username-username  tel-tel*/

    @SuppressWarnings("rawtypes")
    public void invest(Map map);  /* map username-username  lefttime-lefttime*/

    @SuppressWarnings("rawtypes")
    public void coin(Map map);
}


